import React from 'react';
import './index.css';
import 'antd/dist/antd.css';
import 'moment/locale/zh-cn';
import ReactDOM from 'react-dom';
import { install as installPermission } from 'services/permission'
import { install as installModules } from 'services/module'
import registerServiceWorker from 'registerServiceWorker';

import modules from 'modules'
import App from './App';
async function main() {
	await installPermission();
	installModules(modules)
	ReactDOM.render(<App />,
		document.getElementById('root') as HTMLElement);
}

main();
registerServiceWorker();
